s = input().split()
x1 = float(s[0])
y1 = float(s[1])
w1 = float(s[2])
h1 = float(s[3])
s = input().split()
x2 = float(s[0])
y2 = float(s[1])
w2 = float(s[2])
h2 = float(s[3])
deltx = abs(x1 - x2)
delty = abs(y1 - y2)
if deltx <= abs((w1 - w2) / 2) and delty <= abs((h1 - h2) / 2):
    print("包含")
elif deltx >= abs((w1 + w2) / 2) or delty >= abs((h1 + h2) / 2):
    print("重叠")
else:
    print("相离")
